﻿using System;
using ArithLibrary.BasicAriths;

namespace ArithManager
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.Write("Enter 1st no. :");
            int n1 = Convert.ToInt32(Console.ReadLine());
            Console.Write("Enter 2nd no. :");
            int n2 = Convert.ToInt32(Console.ReadLine());
            Console.Write("Enter your choice[1 for Add 2 for Subtract] :");
            int op = Convert.ToInt32(Console.ReadLine());
            Simple simple =new Simple();
            int result = 0;
            switch(op)
            {
                case 1:
                    result = simple.Add(n1, n2);
                    break;
                case 2:
                    result = simple.Subtract(n1, n2);
                    break;

            }
            Console.WriteLine("Result is "+result);
            Console.ReadKey();
        }
    }
}
